import { orderColumns } from './closeTrade.config.js'
import search from './../search/search.js';
export default {
    name: "closeTrade",
    mixins: [search],
    data() {
        return {
            orderColumns,
            loading: false,
            loadData: [{
                id: 1
            }],
            pagination: {
                total: 0,
                current: 1,
                pageSize: 10,
                showSizeChanger: true,
                showTotal: total => `共有${total}条`
            },
        }
    },
    methods: {
        getList(searchForm, page) {
            if (searchForm) {
                console.log(searchForm)
            }
            if (page) {
                this.pagination.current = page
            }
            setTimeout(() => {
                this.pagination.total = 200
                this.$emit("trigger")
            }, 500)
        },
        handleTableChange(pagination) {
            this.pagination.current = pagination.current
            this.pagination.pageSize = pagination.pageSize
            this.getList()
        },
    }

} 